﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CoreHelper.Validation.Validators
{
    [AttributeUsage(AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Parameter, AllowMultiple = false)]
    public class UrlValidatorAttribute : RegexValidatorAttribute
    {


        public UrlValidatorAttribute() : this(ValidationUtils.Messages.Url)
        {
        }

        public UrlValidatorAttribute(string errorMessage) : base(ValidationUtils.RegexPatterns.Url, errorMessage)
        {

        }
    }
}
